//data
export function buildTableData(data) {
  return Object.assign({
    url: {
      list: "/zcgl/receivablesInfo/list",
      delete: "/zcgl/receivablesInfo/delete",
      deleteBatch: "/zcgl/receivablesInfo/deleteBatch",
      exportXlsUrl: "/zcgl/receivablesInfo/exportXls",
      importExcelUrl: "zcgl/receivablesInfo/importExcel",
      exportXlsTemplate: 'zcgl/receivablesInfo/exportXlsTemplate'
    },
    dictOptions:{},
  }, data)
}

//methods
export function buildTableMethod( otherMethods) {
  return Object.assign({

    initDictConfig(){
      this.toTop = 485
      let height = window.innerHeight - this.toTop
      if (height < 300){
        height = 300
      }
      this.screenHeight = height
    },
    handleOperation (title, record, type) {
      debugger
      this.$refs.modalOperationForm.show(title, record, type);
    },
    modalOperationOk(){
      this.loadData()
    }
  }, otherMethods)
}